package vn.cuhanh.dialog;

import vn.cuhanh.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ViewGameCodeDialog extends Activity {
	
	private String codeValue;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.view_game_code);
		codeValue = getIntent().getExtras().getString("codeValue");
		TextView textView = (TextView) findViewById(R.id.view_game_code_value);
		textView.setText(codeValue);
		Button btnClose = (Button) findViewById(R.id.view_game_code_btn_close);
		btnClose.setText(R.string.close);
//		btnClose.setBackground(getResources().getDrawable(R.drawable.btn_grey_bg));
		btnClose.setBackgroundResource(R.drawable.btn_grey_bg);
		btnClose.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				onBackPressed();
			}
		});
	}	
}
